package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class SmsData implements Parcelable {

	private static final String TAG = "SmsData";
	
	private String smsId;
	private String smsPerson;
	private String smsBody;
	
	public SmsData(){
		Log.i(TAG, "SmsData()");
	}
	
	public SmsData(Parcel in){
		Log.i(TAG, "SmsData(Parcel in)");
		
		this.smsId = in.readString();
		this.smsPerson = in.readString();
		this.smsBody = in.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(smsId);
		dest.writeString(smsPerson);
		dest.writeString(smsBody);
	}

	public static final Parcelable.Creator<SmsData> CREATOR =new Parcelable.Creator<SmsData>() {

		@Override
		public SmsData createFromParcel(Parcel source) {
			return new SmsData(source);
		}

		@Override
		public SmsData[] newArray(int size) {
			return new SmsData[size];
		}
	};
	
	public String getSmsId() {
		return smsId;
	}

	public void setSmsId(String smsId) {
		this.smsId = smsId;
	}

	public String getSmsPerson() {
		return smsPerson;
	}

	public void setSmsPerson(String smsPerson) {
		this.smsPerson = smsPerson;
	}

	public String getSmsBody() {
		return smsBody;
	}

	public void setSmsBody(String smsBody) {
		this.smsBody = smsBody;
	}

}
